package com.cqtczh.qhd.driver.api;

import java.io.File;

import android.R.string;

/**
 * Created by storm on 14-3-25.
 */
// http://192.168.1.122:8080
public class GagApi {
	/**
	 * 服务器根节点
	 */
	// private static final String HOST = "http://192.168.0.104:8080/cqtczh/";
	// windows
	private static final boolean isDebug = false;
	
	private static final String HOST1 = "http://192.168.1.80:81/cqtczh/";
	
	private static final String HOST = isDebug ? HOST1 : "http://www.4mylove.cn/";
	

	// linux
	// public static final String HOST = "http://121.40.18.247:80/";

	// "http://192.168.1.111:8080/cqtczh/moduls/fleets/receive.do"

	/**
	 * 图片地址
	 */
	public static final String IMAGE_PAHT_HOST = HOST + "media/";
	/**
	 * 服务器根模块
	 */
	// linux
	// public static final String API_HOST = "http://121.40.18.247:80/fleets/";
	//windows
	public static final String API_HOST = HOST + "fleets/";
	
//	public static final String API_HOST = "http://www.4mylove.cn/cqtczh/fleets/";
//	private static final String API_HOST = "htrtp://192.168.0.104:8080/cqtczh/fleets/";
	// private static final String HOST = "http://121.40.18.247/App";

	// private static final String API_HOST = "http://121.40.18.247/App/api";

	// private static final String HOST = "http://192.168.1.222:8080/App";

	// private static final String API_HOST =
	// "http://192.168.1.222:8080/App/api";

	// public static final String LIST = HOST + "/%1$s/%2$s";

	/**
	 * 上传文件但是没用了现在
	 */
	public static final String SOURCEADRR = HOST + "/uploadFile/";

	/**
	 * APK下载的路径
	 */
	public static final String UPAPKPATH = "http://www.4mylove.cn/down/sj.apk";

	public static final String UP_BAIDU_CHANCEID = HOST
			+ "fleets/updateBaidu.do";

	// 用户注册接口
	/**
	 * 用户注册
	 */
	public static final String REGISTER = API_HOST + "register.do";

	// 用户获取验证码接口
	/**
	 * 用户获得验证码
	 */
	public static final String GETCODE = API_HOST + "getValidateCode.do";

	/**
	 * 用户获取密码重置的验证码
	 */
	public static final String PASS_WORD_RESET_GET_CODE = HOST
			+ "fleet/getValidateCodeForResetPassword.do";

	/**
	 * 用户重新设置密码
	 */
	public static final String PASS_WORD_RESET = HOST
			+ "fleet/resetPasswordForMobile.do";

	// 用户登录接口
	/**
	 * 用户登录
	 */
	public static final String LOGIN = API_HOST + "login.do";

	/**
	 * 用户信息验证json接口
	 */
	public static final String USER_INFO_VERIFY = API_HOST + "completeInfo.do";

	/**
	 * 用户信息验证图片接口
	 */
	public static final String USER_INFO_VERIFY_FOR_IMAGE = API_HOST
			+ "completeInfoForImage.do";

	// 添加车接口 这个接口无用
	public static final String ADDCAR = API_HOST + "car/addCarInfo";

	// 添加更新车接口 这个接口无用
	public static final String UPDATECAR = API_HOST + "car/updateCarInfo";

	// 获取计划订单接口
	/**
	 * 获取订单接口
	 */
	public static final String GETPLANLIST = HOST + "query/queryOrderForMobile";

	/**
	 * 获取司机完成的订单和金额
	 */
	public static final String GET_ORDER_COUNT = HOST + "fleets/getOrderSum";

	// 根据单号获取计划订单接口
	/**
	 * 获得订单详细信息的ordermanager/getOrder.do
	 */
	// cqtczh/ordermanager/getOrder.do

	public static final String GET_ORDER_DETIL = HOST
			+ "ordermanager/getOrder.do";

	/**
	 * 取消订单的接口
	 * 
	 */
	public static final String REJECT_ORDER = API_HOST + "rejectOrder";

	/**
	 * 转单接口
	 */
	public static final String TRANSPORT_ORDER = API_HOST + "transportOrder";

	/**
	 * 确认订单接口
	 */
	public static final String ACCEPT_ORDER = API_HOST + "confirmOrder";

	// 更新图片接口
	public static final String UPLOADIMAGE = API_HOST + "image/uploadImg";

	// 司机更新头像接口
	public static final String DRIVERUPHEADIMG = API_HOST
			+ "driver/driverUpHeadImg";

	// 自动登录接口
	public static final String AUTOLOGIN = API_HOST + "driver/autoLogin";

	// 密码修改接口
	public static final String PWDCHANGE = API_HOST + "driver/pwdChange";

	// 更新支付方式
	public static final String DRIVERSK = API_HOST + "order/updatePayStatus";

	// 完成订单GagApi.HOST+"ordermanager/completeOrder.do"
	// public static final String DRIVERWCDD = API_HOST
	// + "/order/finishOnlineOrder";
	// 直接完成订单 应为完成订单要货主确认
	// public static final String DRIVER_COMPLETE=HOST+"fleets/completeOrder";
	// 新的接口
	public static final String DRIVER_COMPLETE = HOST
			+ "ordermanager/completeOrder.do";
	/**
	 * 
	 */
	public static final String DRIVER_COMPLETE_NEED_RECEIPT = HOST
			+ "ordermanager/completeOrderByReceipt.do";

	// 获取用户信息接口
	public static final String DRIVERINFO = API_HOST + "/driver/driverinfo";

	// 获取车辆信息
	public static final String GETCAR = API_HOST + "/driver/queryCarByDriver";

	// 获取用户信息接口
	public static final String CYADDRESS = API_HOST
			+ "/driver/senderinfoInsert";

	// 更新用户信息接口
	public static final String DRIVERUPDATE = API_HOST
			+ "/driver/driverinfoUpdate";

	// 用户更新订单信息
	public static final String DRIVERUPDATELIST = API_HOST
			+ "/order/updateOnlineOrderByDriver";

	// 检测版本升级接口
	// public static final String CheckVersion = "http://121.40.18.247/App/api"
	// + "/version/versionUpdate";
	public static final String CheckVersion = HOST
			+ "sysOperation/getFleetAppVersion";

	// 更新头像接口
	public static final String HeadUp = API_HOST + "/res/headup";

	// 获取验证码接口
	public static final String GetVcode = API_HOST + "/driver/msgCode";

	// 用户下单接口
	public static final String OnlineOrder = API_HOST + "/order/onlineOrder";

	// 获取计划订单接口
	public static final String QueryOnlineOrder = API_HOST
			+ "order/queryOnlineOrder";

	// 根据车辆类型和公里获取计划订单接口
	public static final String COUNTPRICE = API_HOST
			+ "/order/calValuationPrice";

	// 返回车辆对应资费
	public static final String GETCARPRICE = API_HOST
			+ "/order/queryValuationPrice";

	// 返回车辆对应资费
	public static final String SCREALLIST = API_HOST
			+ "/order/confirmOnlineOrderByDriver";

	// 返回车辆对应资费
	public static final String POSITION = API_HOST
			+ "/position/addRealTimePosition";

	// 返回车辆是否开始接单、上传服务器司机的位置
	public static final String DriverIsOnline = API_HOST
			+ "/position/DriverOnLineList";

	public static final String Creat_Car_Team = API_HOST
			+ "/CarTeam/CreatCarTeam";

	// 上传凭证
	public static final String UPPZ = API_HOST + "/order/uploadNickBack";

	// 登录获得上传信息
	public static final String GET_USER_UPLOAD_INFO = HOST
			+ "moduls/fleets/getCarownerOftenaddress.do";

	/**
	 * ---------------------------------------------------车队模块------------------
	 * --------------------------------------
	 */

	/**
	 * 上传的图片路径
	 */
	public static final String IMAGE_PAHT = HOST + "media/carowner";

	/**
	 * 获得司机自己建立的车队
	 */
	public static final String GET_MY_CREAT_CAR_TEAM = HOST
			+ "moduls/fleets/idTcarowner.do";

	/**
	 * 获得司机加入的车队
	 */
	public static final String GET_JOIN_CAR_TEAM = HOST
			+ "moduls/fleets/idTcarowner.do";

	/**
	 * 获得公司车队信息tcompanymotorcadeorg/
	 */
	public static final String GET_COMPLETE_CAR_TEAM_INFO = HOST
			+ "fleets/tcompanymotorcadeorg/queryCarTeam.do";

	/**
	 * 司机创建车队/moduls/fleets/
	 */
	public static final String CREAT_CAR_TEAM = HOST
			+ "moduls/fleets/createfleet.do";

	/**
	 * 获得车队的成员
	 */
	public static final String GET_CAR_TEAM_REMBER = HOST
			+ "moduls/fleets/memberlist.do";

	/**
	 * 解散车队
	 */
	public static final String DELET_CAR_TEAM = HOST
			+ "moduls/fleets/dissolutionTeamApp.do";

	/**
	 * 删除车队成员
	 */
	public static final String REMOVE_CAR_TEAM_DRIVER = HOST
			+ "moduls/fleets/deletememberAPP.do";

	/**
	 * 司机退出车队
	 */
	public static final String EXIT_CAR_TEAM = HOST
			+ "moduls/fleets/deletememberAPP.do";

	/**
	 * 公司车队队长获得公司成员
	 */
	public static final String GET_COMPLETE_CARTEAMMEMBER = HOST
			+ "fleets/tcompanymotorcadeorg/getCarTeamowner.do";

	/**
	 * 公司发给司机的邀请信息信息
	 */
	public static final String GET_PUSH_COMPLETE_CAR_TEAM_INFO = API_HOST
			+ "tcompanymotorcadeorg/getcarteam.do";

	/**
	 * 邀请司机 （公司邀请由公司自己完成）
	 */
	public static final String CAR_TEAM_ADD_DRIVER = HOST
			+ "moduls/fleets/inviteApp.do";

	/**
	 * 司机获得自由车队信息
	 */
	// http://192.168.1.111:8080/cqtczh/moduls/fleets/idTcarowner.do
	public static final String GET_TEAM_INFO = HOST
			+ "moduls/fleets/idTcarowner.do";

	/**
	 * 司机同意
	 */
	public static final String DRIVEIR_AGGREEEN_INFO = HOST
			+ "moduls/fleets/receive.do";

	/**
	 * 司机同意公司邀请回复
	 */
	public static final String DRIVER_AGREE_OR_NO = API_HOST
			+ "tcompanymotorcadeorg/receive.do";

	/**
	 * 司机
	 */

	/**
	 * ----------------------------------------------结束------------------------
	 * -------------------------------------------------
	 **/
	/**
	 * ----------------------------------------------在线和下线----------------------
	 * ---------------------------------------------------
	 **/
	// String url="http://192.168.1.122:8080/cqtczh/fleets/online.do";
	/**
	 * 司机上线
	 */
	public static final String ON_LINE = API_HOST + "online.do";

	/**
	 * 司机下线
	 */
	public static final String OFF_LINE = API_HOST + "offline.do";

	/**
	 * ----------------------------------------------结束------------------------
	 * -------------------------------------------------
	 **/

	/**
	 * ------------------------------------------------------议价接口--------------
	 * --------------------------------
	 */
	/**
	 * 带声音的接口
	 */
	public static final String BARGAIN_WITH_FILE = API_HOST + "sendMsgWithFile";

	/**
	 * File.separator 声音存放的路径
	 */
	// public static final String
	// BARGAIN_SOUND_FILE_PATH="http://192.168.1.111:8080"+File.separator+"cqtczh"+File.separator+"media"+File.separator;

	public static final String BARGAIN_SOUND_FILE_PATH = HOST + "media"
			+ File.separator;

	/**
	 * 不带声音的接口
	 */
	public static final String BARGAIN_WTHI_OUT_FILE = API_HOST
			+ "sendMsgWithOutFile";

	/**
	 * 司机提交价格
	 */
	public static final String DRIVER_UP_LOAD_PRICE = HOST
			+ "fleets/confirmOrder";

	/**
	 * 司机议价历史信息
	 */
	public static final String BARGAIN_HISTORY_MESSAGE = HOST
			+ "fleets/getMsgList";
	/**
	 * -------------------------------------------------------议价接口结束------------
	 * --------------------------------------------
	 */
	/**
	 * -------------------------------------------------------车型选择区域------------
	 * -------------------------
	 */

	/**
	 * 选择区县
	 */
	public static final String CAR_CONTRY = HOST
			+ "country/listCountryForMobile.do";

	/**
	 * 选择街道
	 */
	public static final String CAR_AREA = HOST + "area/listAreaForMobile.do";

	/**
	 * 选择车辆类型
	 */
	public static final String CAR_TYPE = HOST + "cartype/listJsonCartype.do";
	/**
	 * -----------------------------------------车辆选择完毕--------------------------
	 * --------------------------
	 **/
	/**
	 * 下面是老的service的接口
	 */
//	// 用CarTeamId获得车队信息
//	public static final String GetCarTeamInfo_By_id = API_HOST
//			+ "CarTeam/getCarTeamById";
//
//	// 用用户电话号码获得车队信息
//
//	public static final String GetCarTeamInfo_By_PhoneNo = API_HOST
//			+ "CarTeam/getCarTeamsByPhone";
//
//	// 获得司机完成订单的全部数量和获得司机完成订单的全部金额
//	public static final String GetDriverOrderNumber = API_HOST
//			+ "order/queryDriveOrder";
//
//	// 获得司机的车队
//	public static final String GetMyCarTeam = API_HOST
//			+ "CarTeam/getCarTeamsByPhone";
//
//	// 获得车队司机的信息
//	public static final String GetCarTeamMember = API_HOST
//			+ "CarTeam/getCarTeamDriverById";
//
//	// 查询司机所在的车队
//	public static final String GetJionCarTeam = API_HOST
//			+ "CarTeam/getCarTeamsByDeriver";
//
//	// 用户登录获取车队邀请信息
	public static final String GetCarTeamRequestMessage = API_HOST
			+ "user/getMessage";
//
//	// 用户响应车队请求信息
//	public static final String ResponseCarTeamRequest = API_HOST
//			+ "CarTeam/CarTeamRequestReply";
//
//	// 车队邀请司机
//	public static final String CarTeamAddDriver = API_HOST
//			+ "CarTeam/CarTeamRequest";
//
//	// 车队移除司机
//	public static final String CarTeamRemoveDriver = API_HOST
//			+ "CarTeam/CarTeamDriverDelete";

	// 司机获得自己的信息
	public static final String DRIVER_MESSAGE_GET = HOST
			+ "moduls/fleets/getCarownerOftenaddress.do";

	/**
	 * 司机设置意向地
	 */
	public static final String DRIVER_SET_INTENTION_ADDRESS=HOST+"moduls/fleets/carOwnerSetIntentionAddress.do";
	
	

	/**
	 * 司机获得意向地
	 */
	public static final String DRIVER_GET_INTENTION_ADDRESS=HOST+"moduls/fleets/getCarOwnerIntentionAddress.do";
	
	/**
	 * 一下需要保留
	 */

	/**
	 * 总文件夹用来保存文件
	 */
	public static String TCZH_File = File.separator + "tczh";

	/**
	 * 图片文件夹 \/tczh/Images/
	 */
	public static String IMAGE_FILE_PATH = TCZH_File + File.separator
			+ "Images" + File.separator;

	/**
	 * 声音文件夹
	 */
	public static String SOUND_FILE_PATH = TCZH_File + File.separator + "Sound"
			+ File.separator;
	/**
	 * 文件下载类
	 */
	public static String FILE_PATH = TCZH_File + File.separator + "File"
			+ File.separator;

	/**
	 * 创建的文件
	 */
	public static String UP_LOAD_FILE = FILE_PATH + "test.txt";

	// 程序更新连接API_HOST
	public static final String APK_DowndLoad_Path = "http://www.4mylove.cn"
			+ "/down/sj.apk";

	// APK下载保存的路径
	public static final String New_APK_Path = "/sdcard/ECSender/new-sj.apk";

	// 录制声音的路径
	public static final String RecordSoundPaht = TCZH_File + File.separator
			+ "sound" + File.separator;

	/**
	 * 服务器保存文件的文件
	 */
	public static final String UP_LOAD_LOG_FILE = HOST
			+ "sysOperation/uploadLog";

	public static String channelId = "";
}
